from enum import Enum,unique
Month = Enum('Month',('Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec'))

for m in Month:
    print(m,m.value,m.name)

for name,member in Month.__members__.items():
    print(name,'=>',member,',',member.value,',',member.name)

 

@unique
class Weekday(Enum):
    Sun = 0
    Mon = 1
    Tue = 2
    Wed = 3
    Thu = 4
    Fri = 5
    Sat = 6

print("type(Weekday.Thu)", type(Weekday.Thu))
for w in Weekday:
    print(w,w.value,w.name)

for name,item in Weekday.__members__.items():
    print(name,'=>',item,',',item.value,',',item.name)